(define-module (emacs golden-ratio)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system emacs)
  #:use-module (guix packages)
  #:use-module (guix git-download))

(define-public emacs-golden-ratio
  (package
   (name "emacs-golden-ratio")
   (version "1.0")
   (source (origin
            (method git-fetch)
            (uri (git-reference
                  (url "https://github.com/roman/golden-ratio.el.git")
                  (commit (string-append "v" version))))
            (file-name (git-file-name name version))
            (sha256
             (base32
              "00igv83hiyx7x3pf2grmjpd379brn33fm85f05k104mkkrhg99nm"))))
   (build-system emacs-build-system)
   (home-page "https://github.com/roman/golden-ratio.el")
   (synopsis
    "Automatic resizing of Emacs windows to the golden ratio")
   (description "When working with many windows at the same time, each
window has a size that is not convenient for editing.

golden-ratio helps on this issue by resizing automatically the windows
you are working on to the size specified in the \"Golden Ratio\". The
window that has the main focus will have the perfect size for editing,
while the ones that are not being actively edited will be re-sized to
a smaller size that doesn't get in the way, but at the same time will
be readable enough to know it's content")
   (license license:expat)))
